package org.ht.config;

import org.azj.inireader.BasicIniReader;
import org.azj.logHelper.LOG;
import org.azj.logHelper.LOG_COMPONENT;
import org.azj.logHelper.LOG_LEVEL;

public class ImageType {

	public static ImageType singleton = new ImageType();
	public static String PID;
	public static String TYPE;
	public static String IMG;

	public ImageType() {

		BasicIniReader iniReader = new BasicIniReader();
		try {
			iniReader.read("config\\ImageType.ini");
			LOG.WriteLog("成功读取数据库配置文件");
		} catch (Exception e) {
			LOG.WriteLog(LOG_LEVEL.CRITICAL,
					LOG_COMPONENT.LOG_COMP_INI_FILE_LOADER, "读取数据库配置文件失败");
		}

		PID = iniReader.getValueBySectionKey("ImageType", "PID");
		TYPE = iniReader.getValueBySectionKey("ImageType", "TYPE");
		IMG = iniReader.getValueBySectionKey("ImageType", "IMG");

	}

}
